package edu.whu.notepal.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * @author 陈磊
 * @TableName t_note
 */
@TableName(value ="t_note")
@Data
public class Note implements Serializable {
    private Long id;

    private Long publisherId;

    private Long columnId;

    private String title;

    private String content;

    private String pictures;

    private Boolean timeLimited;

    private LocalDateTime deadline;

    private Boolean visible;

    private Boolean privateChat;

    @TableLogic
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}